import java.util.ArrayList;
import java.util.HashMap;

public class DataUploader {

    public static void main(String[] args)
    {
    	
    	System.out.println("Clustering data from: "+args[0] );
    	hdf5_getters.LoadSongs(args[0]);

//    	songs.addAll(hdf5_getters.LoadSongs(args[1]));
//    	songs.addAll(hdf5_getters.LoadSongs(args[2]));
//    	songs.addAll(hdf5_getters.LoadSongs(args[3]));
    	
    	
    	/*
    	KMeans km = new KMeans();
    	HashMap<Integer, ArrayList<Song>> matches = new HashMap<Integer, ArrayList<Song>>();
    	int k = 10;
    	try
    	{
    		matches = km.findKMeans( k, 4, songs );
    	}
    	catch (Exception e)
    	{
    		System.out.println("error: "+e);
    	}
    	
    	System.out.println("FILLED CLUSTERS OUT OF "+k+" CLUSTERS...");
    	int j=0;
    	for (int i=0; i<k; i++) {
    		if (matches.get(i).size() > 0) {
	    		System.out.println("Cluster "+i+": "+matches.get(i).size()+" songs");
//		    		for (int q=0; q<matches.get(i).size(); q++) {
//		    			System.out.println("song "+j+": "+matches.get(i).get(q).getTitle());
//		    			j++;
//		    		}
    		}
    	}
    	*/
    }
}